/*
 * @Author: your name
 * @Date: 2021-08-17 19:11:12
 * @LastEditTime: 2022-04-03 23:51:11
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \blog_web\src\main.js
 */
import Vue from 'vue'
import App from './App'
import router from './router'
import 'animate.css'
// import animate from 'animate.css';
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import 'normalize.css'
import VueI18n from 'vue-i18n'
Vue.use(VueI18n)
import mavonEditor from 'mavon-editor' //引入mavon-editor 就是上面所安装的
Vue.use(mavonEditor) //让Vue使用mavonEditor
import moment from 'moment'
Vue.prototype.$moment = moment
import 'normalize.css'
import store from './store'
// 导入自定义指令
import { hasPermission } from './directive'
Vue.use(hasPermission)
import { initStore } from './store'

const i18n = new VueI18n({
  locale: 'zh', // 语言标识
  messages: {
    zh: require('./assets/lang/zh'),
    en: require('./assets/lang/en')
  }
})
// Vue.use(animate)
Vue.use(ElementUI)
Vue.config.productionTip = false
initStore()
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  i18n,
  store,
  render: (h) => h(App)
})
